package com.ExaminStudy;

import java.util.Scanner;

public class Test4_12_9 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int[]nums=new int[5];
        System.out.println("请你输入字符");
        for (int i = 0; i <5 ; i++) {
            nums[i]=sc.nextInt();
        }
        System.out.println("请你输入一个整数target");
        int target = sc.nextInt();
        for (int i = 0; i < nums.length-1; i++) {
            for (int j = i+1; j <nums.length ; j++) {
                if(nums[i]+nums[j]==target){
                    System.out.println(i+" "+j);
                    return;
                }
            }
        }

    }
}
